package org.winexpress

/**
 *
 * @author Swee Zhi
 */
class Country {
    int id
    String countryName

    // [variable:Entity]
//        static hasOne = [wineRegion:WineRegion]
    static hasMany = [customers:Customer,staffMembers:Staff,wineRegions:WineRegion]
//        static belongsTo = WineType // for bi-directional to determine the owning entity

    static constraints = {
        id(blank:false, unique:true)
        countryName(blank:false, unique:true)
    }
}

